<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.yunhuakeji.wddx.utils.IsNull"%>
<%@page import="net.sf.json.JSONObject"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
JSONObject result;
try{
	result = JSONObject.fromObject(request.getAttribute("result")).getJSONObject("content").getJSONObject("message");
}
catch(Exception e){
	result = null;
}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>我的资助</title>
     <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no,minimum-scale=1.0,maximum-scale=1.0">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/myreport.css">
	<link rel="stylesheet" type="text/css" href="css/selectStyle.css">
	<script src="js/jquery.min.js"></script>
	<script src="js/selectCustom.js"></script>
	<script src="js/highcharts.js"></script>
	<script src="js/myReport.js"></script>
  </head>
  
  <body>
    	<%if(IsNull.isNotNull(result.toString())){ %>
    	<div class="myData-info-head">
    		<ul>
    			<li><a data-url="jbxx">酬金发放情况 </a></li>
    			<li><a data-url="lxdh">岗位录取情况</a></li>
    			<div class="clear"></div>
    		</ul>
    	</div>
    	<!-- 酬金发放情况-->
    	<div class="myData-info-menu">
    		<div class="active bg-color-gray" id="jbxx">
		    		<div class="bg-color-white">
		    			<table>
		    				<tbody>
			    				<tr class="table-head">
			    					<th>学年</th>
			    					<th>学期</th>
			    					<th>认定档次</th>
			    					<th>认定时间</th>
			    				</tr>
			    			</tbody>
		    				<tbody>
		    				<%for(int i=0;i<result.getJSONArray("pksrdxx").size();i++){ %>
		    					<tr>
		    						<td><%=result.getJSONArray("pksrdxx").getJSONObject(i).getString("xn") %></td>
		    						<td><%=result.getJSONArray("pksrdxx").getJSONObject(i).getString("xq") %></td>
		    						<td><%=result.getJSONArray("pksrdxx").getJSONObject(i).getString("rddc") %></td>
		    						<td><%=result.getJSONArray("pksrdxx").getJSONObject(i).getString("rdsj") %></td>
		    					</tr>
		    				<%} %>
		    				</tbody>
		    			</table>
		    		</div>
    		</div>
	    	
	    	<!-- 岗位录取情况-->
	    	<div class="bg-color-gray"  id="lxdh">
		    		<div class="bg-color-white">
		    			<table>
		    				<tbody>
		    					<tr class="table-head">
		    						<th>学年</th>
		    						<th>学期</th>
		    						<th>项目名称</th>
		    						<th>金额</th>
		    						<th>申请时间</th>
		    					</tr>
		    				</tbody>
		    				<tbody>
		    				<%for(int i=0;i<result.getJSONArray("zzxmxx").size();i++){ %>
		    					<tr>
		    						<td><%=result.getJSONArray("zzxmxx").getJSONObject(i).getString("xn") %></td>
		    						<td><%=result.getJSONArray("zzxmxx").getJSONObject(i).getString("xq") %></td>
		    						<td><%=result.getJSONArray("zzxmxx").getJSONObject(i).getString("xmmc") %></td>
		    						<td><%=result.getJSONArray("zzxmxx").getJSONObject(i).getString("je") %></td>
		    						<td><%=result.getJSONArray("zzxmxx").getJSONObject(i).getString("sqsj") %></td>
		    					</tr>
		    				<%} %>
		    				</tbody>
		    			</table>
		    		</div>
	    	</div>
    	</div>
  <script>
 //创建myreport对象
/*  var report = new myReport(); */
//控制切换显示内容以及标题
$(function(){
//默认高亮按钮
	$("a[data-url="+$(".active").attr("id")+"]").css("background","#8cd06c");
//切换显示内容	
	$('.myData-info-head ul li a').bind('click',function(){
		$('.myData-info-head ul li a').css("background","");
		$(this).css("background","#8cd06c");
		$(".active").removeClass("active");
		$("#"+$(this).attr("data-url")).addClass("active");
	});
});
</script>
	     <%}else{ %>
       <div class="noData">
            <img alt="" src="img/noData.png">
            <div class="mt20">暂无数据</div>
       </div>
   <%} %>
  </body>
</html>
